package com.example.springbootaop.word;

import java.util.Optional;

public class A {
	public static void main(String[] args) {

		Integer a = null;
		Integer b = 3;

		System.out.println(Optional.ofNullable(a).orElse(b));
		System.out.println(Optional.ofNullable(b).get());

	}
}
